package ${dtoPkg};
<#if GeneratorInfo.hasSwagger == "1">
import io.swagger.v3.oas.annotations.media.Schema;
</#if>
import lombok.Data;
import cn.lycode.common.core.page.PageDomain;
import lombok.EqualsAndHashCode;
<#list importPackages as pkg>
import ${pkg};
</#list>
<#if hasDateFormat == true>
import org.springframework.format.annotation.DateTimeFormat;
</#if>
/**
 * ${entityClassName}查询DTO
 *
 * @since ${datetime}
 * @author ${author}
 */
@Data
@EqualsAndHashCode(callSuper = true)
<#if GeneratorInfo.hasSwagger == "1">
@Schema(description = "${entityClassName}查询DTO")
</#if>
public class ${dtoListClassName} extends PageDomain {

<#list columns as field>
<#if field.isQuery == "1" >
  <#-- 范围查询 -->
  <#if field.queryType == "BETWEEN">
  <#-- 范围查询-日期 -->
    <#if field.javaType == "LocalDateTime">
        <#if GeneratorInfo.hasSwagger == "1">
    @Schema(description =  "${field.columnComment}开始")
        </#if>
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private ${field.javaType} ${field.javaField}Start; //${field.columnComment}开始
        <#if GeneratorInfo.hasSwagger == "1">
    @Schema(description =  "${field.columnComment}结束")
        </#if>
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private ${field.javaType} ${field.javaField}End; //${field.columnComment}结束
    <#else>
        <#if GeneratorInfo.hasSwagger == "1">
    @Schema(description =  "${field.columnComment}开始")
        </#if>
    private ${field.javaType} ${field.javaField}Start; //${field.columnComment}开始
        <#if GeneratorInfo.hasSwagger == "1">
    @Schema(description =  "${field.columnComment}结束")
        </#if>
    private ${field.javaType} ${field.javaField}End; //${field.columnComment}开始
    </#if>
  <#else>
      <#if GeneratorInfo.hasSwagger == "1">
    @Schema(description =  "${field.columnComment}")
      </#if>
    private ${field.javaType} ${field.javaField}; //${field.columnComment}
  </#if>
</#if>
</#list>
}